<?php
//
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['setting']=$this->plugin_setting('basic');
	$return['list']=array();
	set_html('title',$$basic['title']?$basic['title']:'轻松点餐');
	exi($return);
}
// js 获取数据
if($_RQ['op']=='getlist'){
	$post=get_postdata();
	$params=array('uniacid'=>$_SESSION['uniacid']);
	$pindex = max(1, intval($post['page']));
	$psize = 10;
	$total='';
	$list=pdo_getslice('jy_weishop_goods',$params,array($pindex,$psize),$total,$fields,'','display desc');
	if(empty($list)){
		$list = array(
			array('title'=>'莲庄客府')
		);
	}
	$return['list']=$list;
	exi($return);
}	
?>